package site.teamo.biu.net.common.constant;

/**
 * @@author: 爱做梦的锤子
 * @date: 2023/3/26 16:07
 */
public enum YesOrNo {
    NO(false),
    YES(true);

    public final boolean booleanValue;

    YesOrNo(boolean booleanValue) {
        this.booleanValue = booleanValue;
    }


    public static YesOrNo of(boolean value) {
        return value ? YES : NO;
    }
}
